package com.lmf.tool;

import org.springframework.security.crypto.bcrypt.BCryptPasswordEncoder;

public class EPasswordUtil {
    private static final BCryptPasswordEncoder passwordEncoder=new BCryptPasswordEncoder();

    public static String MdPassword(String password){
        return passwordEncoder.encode(password);
    }

    public static  boolean matches(CharSequence password,String encodePassword){
       return passwordEncoder.matches(password,encodePassword);
    }
}
